/**************************************************************************************
 *
 * @(#) SchedulerConfig.java
 * @Package com.jgdt.jgdtkasannong_university_gene_backend.config.async
 **************************************************************************************/
package com.jgdt.jgdtkasannong_university_gene_backend.config.async;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;

import java.util.concurrent.Executors;
/**
 * @description: Spring 自带定时器线程池相关配置 todo 待验证
 * @author: huangAn
 * @createDate: 2025/05/16
 */
@Configuration
public class SchedulerConfig implements SchedulingConfigurer {
    @Override
    public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
        taskRegistrar.setScheduler(Executors.newScheduledThreadPool(5));
    }
}




